<?php use_stylesheet('terminal.css') ?>
<?php use_stylesheet('options.css') ?>

<h2>
    <a href="<?= url_for('terminal/show?id='.$tu->getId()) ?>">
        <img class="ptt" src="<?= ICON_FLECHE_DROITE ?>" alt="aller" title="Retour à la fiche du TU" />
    </a> <?= $tu->getName() ?>
</h2>
<h3>
    <a href="<?= url_for('versions/index?id='.$tu->getId()) ?>">
        <img class="ptt" src="<?= ICON_RELOAD ?>" alt="reload" title="Recharger la page" />
    </a> Versions
</h3>

<table style="margin:0px;width:350px;">
    <thead>
        <tr>
            <th>Version</th>
            <th>Date</th>
        </tr>
    </thead>
    <tbody>
        <?php foreach($tab_version as $i => $version): ?>
        <tr class="<?= $i%2==0 ? "pair" : "impair" ?>">
            <td><?= $version->getVersion() ?></td>
            <td><?= date("d/m/Y", strtotime($version->getCreatedAt())) ?></td>
        </tr>
        <?php endforeach; ?>
    </tbody>
</table>
